<?php

namespace app\common\model;

use app\admin\model\Houses;
use think\model;

class UserCollect extends model
{
    protected $autoWriteTimestamp = true;
    protected $updateTime         = false;

    public function user()
    {
        return $this->belongsTo('User', 'user_id', 'id');
    }
    public function houses(){
         return $this->hasOne(Houses::class, 'id', 'houses_id');
    }
}
